package com.unittec.drainage.provider.auth.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.unittec.drainage.provider.auth.entity.SysRole;

/**
 * @description 角色Mapper
 * @author Jason
 * @date 2019/11/07
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 查询角色分页列表
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<Map<String, Object>> selectSysRoleList(IPage<SysRole> page,
        @Param(Constants.WRAPPER) QueryWrapper<SysRole> queryWrapper);

    /**
     * 查询角色列表
     *
     * @param queryWrapper
     * @return
     */
    List<Map<String, Object>> selectSysRoleList(@Param(Constants.WRAPPER) QueryWrapper<SysRole> queryWrapper);

}
